class User {

    String userName
    String passWord

    Date dateOfBirth

    byte[] avatar
    String avatarType

    Set callDetails
    static hasMany = [callDetails : CallDetail]

    String role

    static constraints = {
        avatar(maxSize:1024 * 1024)
    }
}
